//
//  XLHomeStatusModel.swift
//  SinaProjectTest
//
//  Created by zhanghaifeng on 16/10/26.
//  Copyright © 2016年 BBSWaitting. All rights reserved.
//

import UIKit

/// 模型属性
class XLHomeStatusModel: NSObject {

    /// 创建时间 -> 转换成时间对象
    var created_at: Date?
    /// 微博ID
    var id: Int64 = 0
    /// 微博信息内容
    var text: String?
    /// 微博来源
    var source: String?
    /// 用户模型
    var user: XLUserModel?
    /// 转发微博模型
    var retweeted_status: XLHomeStatusModel?
    /// 转发数 int
    var reposts_count: Int = 0
    /// int	评论数
    var comments_count:Int = 0
    /// int	表态数
    var attitudes_count:Int = 0
    /// 配图组数
    var pic_urls: [XLHomePictureModel]?
//    var pic_urls: [HMPictureInfoModel]?
    
    static func modelContainerPropertyGenericClass() -> [String: Any]{
        return ["pic_urls": XLHomePictureModel.self]
    }
    
//    class func modelContainerPropertyGenericClass() -> [String: Any] {
//        return ["pic_urls": HMPictureInfoModel.self]
//    }
    
    override var description: String{
        let keys = ["created_at", "id", "text", "source"]
        return dictionaryWithValues(forKeys: keys).description
    }
    
    
}
